home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 5 / Example 5.5 / camera.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-06-29  |  359 b   |  23 lines

  1. #ifndef _CAMERA
  2. #define _CAMERA
  3.  
  4. #include <d3dx9.h>
  5. #include "debug.h"
  6.  
  7. class CAMERA{
  8.     public:
  9.         //Init Camera
  10.         CAMERA();
  11.         void Init(IDirect3DDevice9* Dev);
  12.  
  13.         //Calculate Matrices
  14.         D3DXMATRIX GetViewMatrix();
  15.         D3DXMATRIX GetProjectionMatrix();
  16.  
  17.         IDirect3DDevice9* m_pDevice;
  18.         float m_fov;
  19.         D3DXVECTOR3 m_eye, m_focus;
  20. };
  21.  
  22. #endif
  23.